import { defineStore } from "pinia";
import { computed, ref } from "vue";
export const useUserStore = defineStore("user", () => {
  const count = ref(0);
  const double = computed(() => {
    return count.value * 2;
  });
  function increment() {
    count.value++;
  }

  return { count, double, increment };
});
